<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>易购GO_淘宝网女装新款_淘宝网商城_淘宝网网上购物</title>
<{assign var="layout" value="4"}>
<{include file="../_meta.html"}>
</head>

<body>
<{include file="../_top.html"}>
<div id="Container">

	<!-- header -->
	<div id="Header" class="clearfix">
		<{assign var="menu" value="home"}>
		<{include file="../_header.html"}>
	</div>
	<!-- /header -->
	
	<!-- body -->
	<div id="Body" class="clearfix">
	
		<!-- main -->
		<div id="Wrapper">
			<div id="Main">
				<div class="com_title"><div class="com_title_in"><div class="com_title_inner"><h2>申请提现</h2></div></div></div>
				
				<style type="text/css">
				.edit_tbl th { vertical-align:middle;}
				</style>
				<div class="content" id="user_body">
					<div class="notice">
						<span class="title">特别提醒：</span>
						<span>通过提现功能，您可以将收入帐户余额转入到您绑定的支付宝帐户中。如果您尚未绑定支付宝帐户，请先绑定支付宝帐户。</span>
						<span>提现金额请输入大于等于0.01数字类型，且小数位数不能超过2位</span>
					</div>
					
					<!-- form -->
					<div class="edit_tbl">
						<form id="formPay" method="POST" action="">
						<table width="100%" cellspacing="0" cellpadding="0" border="0">
							<tr>
								<th>您当前可提现金额：</th>
								<td><i class="morehilite2"><{math equation="a" a=$account.balance format="￥%.2f"}></i></td>
							</tr>
							<tr>
								<th><span class="star_note">*</span>提现金额（元）：</th>
								<td><input type="text" class="input min" name="money"></td>
							</tr>
								<th>&nbsp;</th>
								<td height="49">
									<span class="gray_btn"><input type="submit" value="修改"></span>
									<div class="operate_result"><span class="operate_result_in"></span></div>
								</td>
							</tr>
						</table>
						</form>
					</div>
				</div>
			</div>
		</div>
		<!-- /main -->
		
		<!-- sidebar -->
		<div id="SideBar"><{include file="_menu.html"}></div>
		<!-- /sidebar -->
	</div>
	<!-- /body -->
	
	<!-- footer -->
	<div id="Footer" class="clearfix"><{include file="../_footer.html"}></div>
	<!-- /footer -->
</div>
</body>
</html>

<!-- JS -->
<{JS}>
<script type="text/javascript">
$(document).ready(function() {
	$("#formPay").validate({
		rules: {
			money: {
				required: true,
				number: true,
				min: 0.01,
				max: <{$account.balance}>
			}
		},
		messages: {
			money: {
				required: "提现金额不能为空",
				number: "输入金额类型不正确",
				min: "输入金额不正确",
				max: "输入金额超出当前可提现金额"
			}
		},
		submitHandler: function() {
			$("#formPay").ajaxSubmit({
				type: "POST", url: "", data: {},
				success: function(data) {
					$(".operate_result_in").html(data);
					/* var v = $("#formPay").validate();
					var element = $("#formPay input[name='password']");
					v.showLabel(element[0], "错误提示");
					v.defaultShowErrors(); */
				}
			});
			
			return false;
		}
	});
});
</script>
